entrycompletion: Remove outdated code
authorBenjamin Otte <otte@redhat.com>
Thu, 2 Oct 2014 02:15:57 +0000 (04:15 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 3 Oct 2014 04:18:05 +0000 (06:18 +0200)
I tried asking but nobody knew why it is necessary to set the background
color of the first cell. It seems with CSS styling this is completely
unnecessary.

gtk/gtkentrycompletion.c

index 5ab09d99f36b69527e6390afb785b0173227db80..3969e614bb354c103e1c42197132bacc3671c0a8 100644 (file)
@@ -1605,10 +1605,6 @@ _gtk_entry_completion_resize_popup (GtkEntryCompletion *completion)
 static void
 gtk_entry_completion_popup (GtkEntryCompletion *completion)
 {
-  GtkTreeViewColumn *column;
-  GtkStyleContext *context;
-  GdkRGBA color;
-  GList *renderers;
   GtkWidget *toplevel;
 
   if (gtk_widget_get_mapped (completion->priv->popup_window))
@@ -1625,17 +1621,6 @@ gtk_entry_completion_popup (GtkEntryCompletion *completion)
 
   completion->priv->ignore_enter = TRUE;
 
-  column = gtk_tree_view_get_column (GTK_TREE_VIEW (completion->priv->action_view), 0);
-  renderers = gtk_cell_layout_get_cells (GTK_CELL_LAYOUT (column));
-
-  context = gtk_widget_get_style_context (completion->priv->tree_view);
-  gtk_style_context_get_background_color (context, 0, &color);
-
-  g_object_set (GTK_CELL_RENDERER (renderers->data),
-                "cell-background-rgba", &color,
-                NULL);
-  g_list_free (renderers);
-
   gtk_widget_show_all (completion->priv->vbox);
 
   /* default on no match */